package com.yafeng.logic.controller;


import com.yafeng.comonutils.ApiResult;
import com.yafeng.logic.entity.BaoRbacMenu;
import com.yafeng.logic.service.BaoRbacMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cn.classbao
 * @since 2020-09-08
 */
@RestController
@RequestMapping("bao-rbac-menu")
public class BaoRbacMenuController {

    @Autowired
    private BaoRbacMenuService baoRbacMenuService;

    @GetMapping("query-menu-list")
    @ApiOperation("递归获取所有菜单树")
    public ApiResult queryMenuList(){

        List<BaoRbacMenu> baoRbacMenuList =baoRbacMenuService.queryMenuList();

        return null;

    }

}

